<%
 /****
  * Global_Links.jsp
  * This file is used to include all css and js files required in
  * all pages.
  *
  * Copyright 2004 MicroStrategy Incorporated. All rights reserved.
  * version: 1.2
  * xhtml: true
  ****/
%><%@ page errorPage="Error_Links.jsp"
%><%@ page contentType="text/html"
%><%@ taglib uri="/webUtilTL.tld" prefix="web"
%><%--These includes should eventually be removed. They're currently kept for backwards compatibility: --%>

<web:resource type="style" name="mstr/fsm.css"/>
<web:ifFeature type="bean" name="rw-flash-view-mode;page-full-screen-mode;"  value="rwframe"><web:else>
<web:resource type="style" name="mstr/mstr.css"/>
</web:else></web:ifFeature>
<web:resource type="style" name="mstr/mstrTheme.css"/>
<%-- if document domain is defined, set the domain, regardless the dhtml feature. --%>
<web:ifFeature type="config" name="jsDocumentDomain">
<web:then><web:javascript type="domain" /></web:then>
</web:ifFeature>

<%--
 Check if the user has the DHTML preference turned on to determine whether
  the page should load some JavaScript functions.

 <web:ifFeature name="dhtml">
     [JavaScript code]
 </web:ifFeature>
--%>
<web:ifFeature name="dhtml"><web:then>
<!-- JUIL javascript files (required) -->
<web:resource type="javascript" name="mstr/core.js" location="head"/>
 
<web:resource type="javascript" name="DHTML.js" location="head"/>
<web:resource type="javascript" name="IFRAME.js" location="head"/>
<web:resource type="javascript" name="microstrategy.js" location="head"/>
<web:resource type="javascript" name="errors.js"/>
<web:resource type="javascript" name="bone.js"/>

<web:resource type="javascript" name="dialog.js"/>
<web:resource type="javascript" name="HTMLAttributes.js"/>
<web:resource type="javascript" name="editor.js"/>
<web:resource type="javascript" name="mstrEventManager.js"/>
<web:resource type="javascript" name="clientSideDescriptor.js"/>



<script language="JavaScript">
try { document.execCommand("BackgroundImageCache", false, true); } catch(err) {} 
</script>

<web:ifFeature type="systemPreference" name="includeSessionUrl">
    <web:then>
        <web:scriptlet> 
             if (typeof(microstrategy) != 'undefined') {
                 microstrategy.sessionState = '<web:connectionValue property="sessionState"/>';
             }
        </web:scriptlet>
    </web:then>
</web:ifFeature>


</web:then></web:ifFeature>

